import request from '@/utils/request'

// 统一前缀
var prefix = '/examService'

// 题库查询
export function lookAllProblemBank(params) {
  return request({
    url: `${prefix}/proBank/listAll`,
    method: 'GET',
    params: params,
  })
}

// 题库查询
export function lookProblemBank(params) {
  return request({
    url: `${prefix}/proBank/list`,
    method: 'GET',
    params: params,
  })
}

// 题库添加
export function addProblemBank(params) {
  return request({
    url: `${prefix}/proBank`,
    method: 'POST',
    data: params,
  })
}

// 题库修改
export function updateProblemBank(params) {
  return request({
    url: `${prefix}/proBank`,
    method: 'PUT',
    data: params,
  })
}

// 题库删除
export function deleteProblemBank(params) {
  return request({
    url: `${prefix}/proBank`,
    method: 'DELETE',
    data: params,
  })
}
